﻿using NFine.Application.Biz;
using NFine.Code;
using Quartz;
using System;
using System.Threading.Tasks;

namespace NFine.Web.App_Start._02_Class
{
    public class TimeJob2 : IJob
    {
        private Log logger = LogFactory.GetLogger("TimeJob2");

        private static int index = 0;
        public Task Execute(IJobExecutionContext context)
        {
            //System.IO.File.AppendAllText(@"../Quartz.txt", DateTime.Now+"--"+(index++)+"--" + Environment.NewLine);
            logger.Debug("发放奖金："+index++);
            return Task.FromResult(true);
        }
    }
}